package concurrency;

import concurrency.display.NumberFrame;

public class Timer02 implements Runnable {

	private NumberFrame frame;
	private int m;

	public void run() {
		frame = new NumberFrame();
		m = frame.getValue();
		try {
			for (int i = m; i>=0; i--) {
				frame.setValue(i);
				Thread.sleep(1000);
			}
		} catch (InterruptedException e) {
		}
	}
}
